package com.springlearn.springsourcecode.chap8;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @author wtcode
 * @Description
 * @date 2025/3/31 - 14:26
 */
@Scope("request")
@Component
public class BeanForRequest {

    private static final Logger log = LoggerFactory.getLogger(BeanForRequest.class);

    @PreDestroy
    public void destroy(){
        log.debug("destroy");
    }

}
